package com.qf.product.controller;

import com.qf.core.dto.PageDto;
import com.qf.core.vo.PageResult;
import com.qf.product.dto.Vo;
import com.qf.product.entity.Product;
import com.qf.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 产品表 前端控制器
 * </p>
 *
 * @author yxh
 * @since 2023-10-26
 */
@RestController
@CrossOrigin
@RequestMapping("/product")
public class ProductController {


    @Autowired
    private ProductService productService;

    @PostMapping(value = "/page")
    public PageResult<Product> page(@RequestBody PageDto<Vo> params) {

        return productService.findPage(params);
    }






}
